#ifndef _NE_SKELETON_FILE_FORMAT_H_
#define _NE_SKELETON_FILE_FORMAT_H_

#include <neinit.h>

namespace ne
{
    const uint32_t SKELETON_FILE_MAGIC_NUMBER = 0x1222;
    const uint32_t SKELETON_FILE_VERSION = 1;
    const uint32_t MAX_STRING_LENGTH_IN_SKELETON_FILE = 0x80;

    struct SkeletonHeader
    {
        uint32_t mMagicNum;
        uint32_t mVersion;
        char mName[MAX_STRING_LENGTH_IN_SKELETON_FILE];
        uint32_t mNumJoints;
        uint32_t mJointsOffset;
    };

    struct JointHeader
    {
        uint16_t mHandle;
        uint16_t mParent;
        char mName[MAX_STRING_LENGTH_IN_SKELETON_FILE];
        real mPosition[3];
        real mOrientation[4];
        real mScale[3];
    };
}

#endif
